using System;
using System.Collections.Generic;
using hao_Model.Enums;

namespace hao_Dto
{
    /// <summary>
    /// 商品响应DTO
    /// </summary>
    public class ProductResponseDto
    {
        public Guid Id { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string Category { get; set; }
        public decimal Price { get; set; }
        public decimal? OriginPrice { get; set; }
        public DeliveryMethod DeliveryMethod { get; set; }
        public BargainOption BargainOption { get; set; }
        public string Location { get; set; }
        public bool AutoRenew { get; set; }
        public DateTime CreatedAt { get; set; }
        public List<string> ImageUrls { get; set; } = new List<string>();
        public Guid UserId { get; set; }
        
        // 添加枚举的描述字段
        public string DeliveryMethodName => DeliveryMethod.GetDescription() ?? DeliveryMethod.ToString();
        public string BargainOptionName => BargainOption.GetDescription() ?? BargainOption.ToString();
        
        // 卖家信息
        public string SellerName { get; set; }
        public string SellerAvatar { get; set; }
        public string SellerPhone { get; set; }
        public string SellerEmail { get; set; }
    }
}